package com.imooc.product.client;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import com.imooc.product.common.DecreaseStockInput;
import com.imooc.product.common.ProductInfoOutput;

/**
 * @author morrow
 * @date 2019年1月1日
 * 
 */
@FeignClient("product")
public interface ProductClient {

	@GetMapping("/msg")
	public String productMsg();
	
	@PostMapping("/product/listForOrder")
	public List<ProductInfoOutput> listForOrder(List<String> productIdList);
	
	@PostMapping("/product/decreaseStock")
	public void decreaseStock(List<DecreaseStockInput> decreaseStockInputList);
}
